import { request } from "./request";
export function getHomeData(){
    return request({
        url:'/api/index',
    })
   
}
export function getBanner(){}
export function getHomeGoods(type='sales',page=1){
    return request({
        url:'/api/index?'+ type+ '=1&page=' + page,
      
    })
}
export function getSearch(title='',page=1){
    return request({
        url:'/api/goods?title='+title+'&page='+page
    })
}